﻿@using CodeGenerator
@using RazorLight
@using BXJG.Common;
@inherits TemplatePage<ExecuteContext>
@{
    DisableEncoding = true;//禁止html编码，因为我们是做代码生成器
}
using Abp.Application.Services.Dto;
using @Model.Model.CoreShareNamespace;
using System.ComponentModel;
@if(Model.Model.IsTree)
{
@:using BXJG.Utils.Application.Share.GeneralTree;    
}

namespace @(Model.Model.ApplicationCommonShareNamespace)
{
    /// <summary>
    /// 获取 @(Model.Model.DisplayName) 以供选择的数据模型
    ///</summary>
    public partial class @(Model.Model.ProviderDtoName) : @(Model.Model.IsTree ? $"GeneralTreeNodeForSelectDto<{Model.Model.ProviderDtoName}>" : (Model.Model.PrimaryField.CSharpType == "int" ? "EntityDto" : $"EntityDto<{Model.Model.PrimaryField.CSharpType}>"))
    {
@foreach (var field in Model.Model.NormalFields){<text>
        /// <summary>
        /// @(field.DisplayName)
        ///</summary>
        [DisplayName("@(field.DisplayName)")]
        public @field.CSharpTypeNullable @field.Name { get; set; }
</text>}
    }
}